﻿using System;

namespace Flagwind.Infrastructure.ComponentModel.Instructions
{
    /// <summary>
    /// 表示内部接口返回实体对象
    /// </summary>
    /// <typeparam name="T">响应对象</typeparam>
    public class ApiResponse<T>
    {
        /// <summary>
        /// 获取或设置状态码
        /// </summary>
        public int Code
        {
            get;
            set;
        }

        /// <summary>
        /// 获取或设置提示消息
        /// </summary>
        public string Message
        {
            get;
            set;
        }

        /// <summary>
        /// 获取或设置服务器时间
        /// </summary>
        public DateTime ServerTime
        {
            get;
            set;
        }

        /// <summary>
        /// 获取或设置命令响应内容
        /// </summary>
        public T Content
        {
            get;
            set;
        }
    }
}